package cn.edu.zzuli.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@ApiModel("积分表")
@NoArgsConstructor
@AllArgsConstructor
public class Points {

    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("签到用户id")
    private Integer userId;

    @ApiModelProperty("连续签到天数")
    private Integer continueDays;

    @ApiModelProperty("最后签到日期")
    private String updateTime;

    @ApiModelProperty("星期")
    private Integer week;

    @ApiModelProperty("点券")
    private Integer score;


    public Points(Integer userId, String updateTime, Integer week) {
        this.userId = userId;
        this.updateTime = updateTime;
        this.week = week;
    }

    public Points(Integer score){
        this.score = score;
    }

    public Points(Integer userId, Integer continueDays,  Integer week, Integer score) {
        this.userId = userId;
        this.continueDays = continueDays;
        this.week = week;
        this.score = score;
    }
}
